package cn.tedu.day01.pojo;

import java.util.List;

/**
 * 角色实体类
 */
public class Role {
    private Integer id; // 角色id
    private String role_name;// 角色名
    private String note; // 备注
    private List<User> users;//多对多关系映射

    public List<User> getUsers() {
        return users;
    }

    public void setUsers(List<User> users) {
        this.users = users;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getRole_name() {
        return role_name;
    }

    public void setRole_name(String role_name) {
        this.role_name = role_name;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    @Override
    public String toString() {
        return "Role{" +
                "id=" + id +
                ", role_name='" + role_name + '\'' +
                ", note='" + note + '\'' +
                ", users=" + users +
                '}';
    }
}
